package com.generator.marketManage.orderManage.dao;

import com.generator.marketManage.orderManage.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderManageMap {

    //条件查询订单
    public List<Order> queryOrder(OrderCondition condition);

    //    根据订单id查询订单明细
    public List<OrderDetail> queryOrderDetailById(OrderDetail orderDetail);

    //根据订单号删除订单
    public Integer deleteOrder(OrderCondition condition);

    //根据部门查询职位
    public List<Job> queryJobByDept(Job job);

    //根据职位查姓名
    public List<Job> queryNameByJob(Job job);

    //提交审核
    public Integer subCheck(Order order);

    //添加，修改页面加载完成查询所有品牌
    public List<Brand> queryBrand();

    //根据品牌查询类型
    public List<Type> queryTypeByBrand(Brand brand);

    //根据类型查询型号
    public List<Product> queryModelByType(Type type);

    //根据商品id查商品信息
    public Product queryProductDetail(Product product);

    //插入商品明细
    public Integer detailAdd(OrderDetail orderDetail);

}
